/**
 * @project heima-leadnews
 * @author MECHREVO
 * @date 2024/1/18 15:33:19
 * @version 1.0
 */
package com.heima.article.fegin;

import com.heima.article.service.ApArticleService;
import com.heima.fegin.article.IArticleClient;
import com.heima.model.article.dto.ArticleDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ArticleClient implements IArticleClient {
    @Autowired
    private ApArticleService apArticleService;

    /**
     * 新增或修改app文章修改信息
     *
     * @param dto
     */
    @Override
    public ResponseResult saveArticle(ArticleDto dto) {

        return apArticleService.saveArticle(dto);
    }
}
